import user from '../service/user.js';
import role from '../service/role.js';
import download from '../service/download.js'
const allApi = {
  // 用户
  "user&get": user.getUser,
  "user&put": user.editUser,
  "user&post": user.addUser,
  "user&delete": user.delUser,
  "exportUser&get": user.exportUser,
  "importUser&post": user.importUser,

  // 角色
  "role&get": role.getRole,
  "role&put": role.editRole,
  "role&post": role.addRole,
  "role&delete": role.delRole,

  // 文件下载
  'download/homeDoc&get': download.downloadDocs,
  'download/noteTemplate&get': download.downloadNoteTemplate,
}

export default allApi;

export const ALL_PATH = Object.keys(allApi);